﻿<Window x:Class="Mongoose.Sample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:mwc="clr-namespace:Mongoose.Windows.Controls;assembly=Mongoose.Windows"
        Icon="Resources/MongooseLogo.png"
        Title="Mongoose Sample Application" Height="1000" Width="1200">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="60" />
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Margin="5" HorizontalAlignment="Right">
            <TextBlock FontFamily="Helvetica" FontWeight="Bold" FontSize="13" Text="Surface Offset" VerticalAlignment="Bottom" TextAlignment="Right"></TextBlock>
            <StackPanel Orientation="Horizontal">
                <TextBlock FontFamily="Helvetica" FontSize="13" Text="X: " VerticalAlignment="Bottom" TextAlignment="Right"/>
                <TextBlock FontFamily="Helvetica" FontSize="13" Text="{Binding MatrixTransform.OffsetX, ElementName=surface}" VerticalAlignment="Bottom" TextAlignment="Right"/>
                <TextBlock FontFamily="Helvetica" FontSize="13" Text=" / Y: " VerticalAlignment="Bottom" TextAlignment="Right"/>
                <TextBlock FontFamily="Helvetica" FontSize="13" Text="{Binding MatrixTransform.OffsetY, ElementName=surface}" VerticalAlignment="Bottom" TextAlignment="Right"/>
            </StackPanel>
            <TextBlock FontFamily="Helvetica" FontWeight="Bold" FontSize="13" Text="Zoom Factor" VerticalAlignment="Bottom" TextAlignment="Right" Margin="0,5,0,0"></TextBlock>
            <TextBlock FontFamily="Helvetica" FontSize="13" Text="{Binding MatrixTransform.M11, ElementName=surface}" VerticalAlignment="Bottom" TextAlignment="Right"></TextBlock>
        </StackPanel>

        <StackPanel Grid.Row="1" Orientation="Horizontal" >
            <Image Grid.Row="1" Source="Resources/MongooseLogo.png"  />
            <StackPanel Margin="5">
                <TextBlock FontFamily="Helvetica" FontWeight="Bold" FontSize="13" Text="Codename Mongoose" VerticalAlignment="Bottom" />
                <TextBlock FontFamily="Helvetica" FontSize="13" Text="Alpha Version" VerticalAlignment="Bottom" />
                <TextBlock FontFamily="Helvetica" FontSize="13" Text="V0.2" VerticalAlignment="Bottom" />
            </StackPanel>
        </StackPanel>

        <mwc:Surface x:Name="surface" Grid.RowSpan="2" ItemsSource="{Binding PadContents}">
            <mwc:Surface.ItemContainerStyle>
                <Style>
                    <Setter Property="mwc:Pad.DisplayName" Value="{Binding}" />
                </Style>
            </mwc:Surface.ItemContainerStyle>
        </mwc:Surface>

    </Grid>
</Window>
